import { defHttp } from '/@/utils/http/axios';
import { useMessage } from '/@/hooks/web/useMessage';
import { VerifyMessageReq } from './model/msgPushModel';

const { createErrorModal } = useMessage();
enum Api {
  //获取验证码的接口
  sendCaptchaMsg = '/msg-push-service/captchaMsg/send',
}


export function sendCaptchaMsg(params: VerifyMessageReq, errorMessageMode = 'message') {
  // @ts-ignore
  return defHttp.post({ url: Api.sendCaptchaMsg, params }, { isTransformResponse: false, errorMessageMode })
}


